<template>
	<view>
		<view class="header">
			<image class="logo" src="/static/logo.png"></image>
		</view>
		<view class="content">懂钱弟-落地页模板</view>
		<view class="content">当前环境：{{ $config.env }}</view>
		<view class="content">api请求地址：{{ $config.baseUrl }}</view>
	</view>
</template>

<script>
import ajax from '@/api'
export default {
	data() {
		return {}
	},
	watch: {},
	onLoad() {},
	onShow() {
		this.init()
	},
	methods: {
		async init() {
			try {
				const data = await ajax.getCode({ phone: `18366235626` })
				console.log(data, '实例接口')
			} catch (error) {
				console.log(error, '错误信息')
			}
		}
	}
}
</script>

<style lang="scss">
.header {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20vh;
	.logo {
		width: 100rpx;
		height: 100rpx;
	}
}
.content {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 40rpx;
}
</style>
